﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;

class NumberFromString
{
    static void Main()
    {
        Console.Write("Enter number:");
        string str = Console.ReadLine().Replace(" ","").Replace(",",".");
        double num = double.Parse(str, new CultureInfo("en-US"));
        Console.WriteLine(num);
    }
}

